package com.hxzy.shop.commodity.dto.resp;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Map;

@Data
public class DrugResp {

    @ApiModelProperty
    private Long drugId;

    @ApiModelProperty("药品编码")
    private String drugCode;

    @ApiModelProperty("药品名称")
    private String drugName;

    @ApiModelProperty("条形码")
    private String barCode;

    @ApiModelProperty("规格")
    private String specifications;

    @ApiModelProperty("单位")
    private String company;

    @ApiModelProperty("剂型")
    private String dosageForm;

    @ApiModelProperty("生产厂家")
    private String manufacturer;

    @ApiModelProperty("批准文号")
    private String approvalNumber;

    @ApiModelProperty("处方药id")
    private Long prescriptionId;

    @ApiModelProperty("是否是处方药")
    private Boolean prescriptionDrug;

    @ApiModelProperty("处方药编码")
    private String prescriptionCode;

    @ApiModelProperty("一级分类名")
    private String stairClassifiedName;

    @ApiModelProperty("一级分类id")
    private Long stairClassifiedId;

    @ApiModelProperty("二级分类名")
    private String secondLevelClassifiedName;

    @ApiModelProperty("二级分类id")
    private Long secondLevelClassifiedId;

    @ApiModelProperty("库存")
    private Integer stock;

    @ApiModelProperty("成本价")
    private BigDecimal costPrice;

    @ApiModelProperty("统一售价")
    private BigDecimal uniformRetailPrice;

    @ApiModelProperty(value = "上架状态 true上架 false 下架")
    private Boolean state;

    @ApiModelProperty("列表图")
    private String tabularChart;

    @ApiModelProperty("轮播图")
    private Map<Integer, String> drugCarouselMap;

    @ApiModelProperty("详细图")
    private Map<Integer, String> detailedImage;

    @ApiModelProperty("是否仓库药品")
    @TableField(exist = false)
    private Boolean isEntrepotDrug;
    /**
     * 药品通用名称
     * */
    @ApiModelProperty("药品通用名称")
    private String drugGenericNames;
}